// pages/stock/stock_main.js
Page({

  /* 页面的初始数据 */
  data: {
    curNav:1,

 
  },
  /* 把点击到的某一项 设为当前curNav   */
  switchRightTab:function(e){
    let id = e.target.dataset.id;
    console.log(id);
    this.setData({
      curNav: id
    })
  },
  JumpToURL:function(e){
    
    let id=e.currentTarget.dataset.id
    console.log(id)
    wx.navigateTo({
      url: '../shops/1',
      success: function (res) {
        // success
      },
      fail: function () {
        // fail
      },
      complete: function () {
        // complete
      }
    })
  }
})